package com.dgshanger.sanhxiaofeisc.entity;

import com.chad.library.adapter.base.entity.MultiItemEntity;

import java.util.List;

/**
 * HomeEntity
 * 沉迷学习不能自拔
 * Describe：
 * Created by 雷小星🍀 on 2018/4/13 18:04.
 */

public class HomeEntity {

    private List<CategoryListBean> category_list;
    private List<RecommendListBean> recommend_list;

    public List<CategoryListBean> getCategory_list() {
        return category_list;
    }

    public void setCategory_list(List<CategoryListBean> category_list) {
        this.category_list = category_list;
    }

    public List<RecommendListBean> getRecommend_list() {
        return recommend_list;
    }

    public void setRecommend_list(List<RecommendListBean> recommend_list) {
        this.recommend_list = recommend_list;
    }

    public static class CategoryListBean {
        /**
         * category_id : 4
         * category_name : 旅游
         * img : /uploads/category_imgs/map.png
         * sort : 40
         */

        private String category_id;
        private String category_name;
        private String img;
        private String sort;

        public String getCategory_id() {
            return category_id;
        }

        public void setCategory_id(String category_id) {
            this.category_id = category_id;
        }

        public String getCategory_name() {
            return category_name;
        }

        public void setCategory_name(String category_name) {
            this.category_name = category_name;
        }

        public String getImg() {
            return img;
        }

        public void setImg(String img) {
            this.img = img;
        }

        public String getSort() {
            return sort;
        }

        public void setSort(String sort) {
            this.sort = sort;
        }
    }

    public static class RecommendListBean implements MultiItemEntity {
        /**
         * shop_id : 4
         * img_id : 0
         * video_id : 0
         * list_type : 1
         * join_shop : {"shop_id":"4","shop_name":"莲香楼","menu_img":"/uploads/shop_imgs/lxl4.jpg","introduce":"夜茶好选择","longitude":"113.269029","latitude":"23.121152","comment_score":"10.00","cate_id":"3","category_name":"娱乐"}
         * join_activity_img : {}
         * join_activity_video : {}
         */

        private String shop_id;
        private String img_id;
        private String video_id;
        private String list_type;
        private JoinShopBean join_shop;
        private JoinActivityImgBean join_activity_img;
        private JoinActivityVideoBean join_activity_video;

        public String getShop_id() {
            return shop_id;
        }

        public void setShop_id(String shop_id) {
            this.shop_id = shop_id;
        }

        public String getImg_id() {
            return img_id;
        }

        public void setImg_id(String img_id) {
            this.img_id = img_id;
        }

        public String getVideo_id() {
            return video_id;
        }

        public void setVideo_id(String video_id) {
            this.video_id = video_id;
        }

        public String getList_type() {
            return list_type;
        }

        public void setList_type(String list_type) {
            this.list_type = list_type;
        }

        public JoinShopBean getJoin_shop() {
            return join_shop;
        }

        public void setJoin_shop(JoinShopBean join_shop) {
            this.join_shop = join_shop;
        }

        public JoinActivityImgBean getJoin_activity_img() {
            return join_activity_img;
        }

        public void setJoin_activity_img(JoinActivityImgBean join_activity_img) {
            this.join_activity_img = join_activity_img;
        }

        public JoinActivityVideoBean getJoin_activity_video() {
            return join_activity_video;
        }

        public void setJoin_activity_video(JoinActivityVideoBean join_activity_video) {
            this.join_activity_video = join_activity_video;
        }

        @Override
        public int getItemType() {
            return Integer.valueOf(list_type);
        }

        public static class JoinShopBean {

            /**
             * shop_id : 4
             * shop_name : 莲香楼
             * menu_img : /uploads/shop_imgs/lxl4.jpg
             * introduce : 夜茶好选择
             * longitude : 113.269029
             * latitude : 23.121152
             * comment_score : 10.00
             * cate_id : 3
             * category_name : 娱乐
             */

            private String shop_id;
            private String shop_name;
            private String menu_img;
            private String introduce;
            private String longitude;
            private String latitude;
            private String comment_score;
            private String cate_id;
            private String category_name;

            public String getShop_id() {
                return shop_id;
            }

            public void setShop_id(String shop_id) {
                this.shop_id = shop_id;
            }

            public String getShop_name() {
                return shop_name;
            }

            public void setShop_name(String shop_name) {
                this.shop_name = shop_name;
            }

            public String getMenu_img() {
                return menu_img;
            }

            public void setMenu_img(String menu_img) {
                this.menu_img = menu_img;
            }

            public String getIntroduce() {
                return introduce;
            }

            public void setIntroduce(String introduce) {
                this.introduce = introduce;
            }

            public String getLongitude() {
                return longitude;
            }

            public void setLongitude(String longitude) {
                this.longitude = longitude;
            }

            public String getLatitude() {
                return latitude;
            }

            public void setLatitude(String latitude) {
                this.latitude = latitude;
            }

            public String getComment_score() {
                return comment_score;
            }

            public void setComment_score(String comment_score) {
                this.comment_score = comment_score;
            }

            public String getCate_id() {
                return cate_id;
            }

            public void setCate_id(String cate_id) {
                this.cate_id = cate_id;
            }

            public String getCategory_name() {
                return category_name;
            }

            public void setCategory_name(String category_name) {
                this.category_name = category_name;
            }
        }

        public static class JoinActivityImgBean {

            /**
             * title : 美食节 - 一年一度美食节
             * menu_img : /uploads/img_imgs/img01.jpg
             * redirect_type : 1
             * id : 1
             * redirect_url : http://laravelacademy.org/
             */

            private String title;
            private String menu_img;
            private String redirect_type;
            private String id;
            private String redirect_url;
            private String content;

            public String getContent() {
                return content;
            }

            public void setContent(String content) {
                this.content = content;
            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public String getMenu_img() {
                return menu_img;
            }

            public void setMenu_img(String menu_img) {
                this.menu_img = menu_img;
            }

            public String getRedirect_type() {
                return redirect_type;
            }

            public void setRedirect_type(String redirect_type) {
                this.redirect_type = redirect_type;
            }

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getRedirect_url() {
                return redirect_url;
            }

            public void setRedirect_url(String redirect_url) {
                this.redirect_url = redirect_url;
            }
        }

        public static class JoinActivityVideoBean {

            /**
             * id : 1
             * title : 电影推荐 - Marvel Comics 雷神3
             * video_thumb : /uploads/video_imgs/video01.jpg
             * video_url : /uploads/videos/video01.mp4
             */

            private String id;
            private String title;
            private String video_thumb;
            private String video_url;
            /**
             * video_out_link : <iframe height=498 width=510 src='http://player.youku.com/embed/XMzQ2OTMxMTQ4NA==' frameborder=0 'allowfullscreen'></iframe>
             * video_type : 1
             */

            private String video_out_link;
            private String video_type;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public String getVideo_thumb() {
                return video_thumb;
            }

            public void setVideo_thumb(String video_thumb) {
                this.video_thumb = video_thumb;
            }

            public String getVideo_url() {
                return video_url;
            }

            public void setVideo_url(String video_url) {
                this.video_url = video_url;
            }

            public String getVideo_out_link() {
                return video_out_link;
            }

            public void setVideo_out_link(String video_out_link) {
                this.video_out_link = video_out_link;
            }

            public String getVideo_type() {
                return video_type;
            }

            public void setVideo_type(String video_type) {
                this.video_type = video_type;
            }
        }
    }
}
